home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Almathera Ten Pack 3: CDPD 3
/
Almathera Ten on Ten - Disc 3: CDPD3.iso
/
scope
/
001-025
/
scopedisk7
/
unix
/
shar.doc
< prev
next >
Wrap
Text File
|
1995-03-18
|
2KB
|
56 lines
SHAR(1net)UNIX Programmer's Manual (December 26, 1984) SHAR(1net)
NAME
shar - create file storage archive for extraction by /bin/sh
SYNOPSIS
shar [-d delim] [-p prefix] [-bcv] files
DESCRIPTION
SHAR prints its input files with special lines around them to be
used by the shell, bin/msh , to extract them later. The output can
be filtered through the shell to recreate copies of the original files.
Options
-a All the options. The options:
-v -c -b -p XX
are implied.
-v Print verbose feedback messages about what
shar
is
doing to be printed during extraction. Sizes of plain
files are echoed to allow a simple validity check.
-c Check file size on extraction by counting characters.
An error message is reported to the person doing the
extraction if the sizes don't match.
-b Extract files into basenames so that files with
absolute path names are put into the current directory.
This option has no effect when directories are
archived.
-d delim
Use this as the ``end of file'' delimiter instead of
the default. The only reason to change it is if you
suspect an file contains the default delimiter: SHAR_EOF
-p prefix
Use this as the prefix to each line of the archived
files. This is to make sure that special characters
are not eaten up by programs like mailers. If this
option is used, the files will be extracted with the
stream editor sed rather than cat so it is more
efficient and portable to avoid setting the prefix.
SHAR allows directories to be named, and SHAR prints the
necessary commands to create new directories and fill them.
AUTHOR
Gary Perlman (based on a shell version by James Gosling)
(many additions motivated by Derek Zahn & Michael Thompson)
BUGS
SHAR does not know anything about: links between files, binary files,
overwriting existing files, or protection modes of files.